package com.example.spring_aop.proxy.static_model;

import com.example.spring_aop.proxy.UserService;
import com.example.spring_aop.proxy.UserServiceImpl;
import lombok.extern.slf4j.Slf4j;

/**
 * @className: UserServiceProxy
 * @author: 芃
 * @description:
 * @date: 2024/12/30 15:01
 */
@Slf4j
public class UserServiceStaticProxy implements UserService {
    UserService userService = new UserServiceImpl();
    @Override
    public void login(String name, String password) {
        log.info("记录日志功能：参数为: "+ name + " " + password);
        userService.login(name, password);
    }

    @Override
    public void register(User user) {
        log.info("记录日志功能：参数为: "+ user.toString());
        userService.register(user);
    }
}
